import Vue from 'vue'
import Vuex from 'vuex'
import user from './user/user.js'
import router from './user/router.js'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    item:[]
  },
  mutations: {
    setList(state,arr) {
      state.item = arr
    }
  },
  actions: {
  },
  modules: {
    user,
    router
  }
})
